<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <form @submit.prevent="postData">
            <input type="submit">
        </form>
    </div>
    <script src="../Dev-tools/vue.js"></script>
    <script>
        new Vue({
            methods:{
                postData(){
                    console.log("提交数据");
                }
            }
        }).$mount("#app")
    </script>
</body>
</html>